import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import '@/utils/elementUI-Com' // element 注入文件
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/iconFont/iconfont.css'
import './permission' // 路由守卫文件
import '@/assets/styles/globalStyle.less'

import * as directives from '@/directives' // 引入所有指令

Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key])
})

Vue.config.productionTip = false

Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
